<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
  
  <head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <link rel="shortcut icon" th:href="@{/pages/favicon.ico}" href="/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" th:href="@{/pages/css/font.css}" href="./css/font.css">
    <link rel="stylesheet" th:href="@{/pages/css/xadmin.css}" href="./css/xadmin.css">
    <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script src="./lib/layui/layui.js" th:src="@{/pages/lib/layui/layui.js}" charset="utf-8"></script>
    <script type="text/javascript" th:src="@{/pages/js/xadmin.js}" src="./js/xadmin.js"></script>
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
      <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
      <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
  
  <body>
    <div class="x-body">
        <form class="layui-form" >
          <div class="layui-form-item">
              <label for="title" class="layui-form-label">
                  <span class="x-red">*</span>平台名称
              </label>
              <div class="layui-input-inline">
                  <input type="text" id="title" name="platformName" th:value="${platform.platformName}" readonly lay-verify="required" class="layui-input"/>
              </div>
              <label for="phone" class="layui-form-label">
                  <span class="x-red">*</span>平台电话
              </label>
              <div class="layui-input-inline">
                  <input type="text" id="phone" name="phone" th:value="${platform.phone}" readonly  lay-verify="required" class="layui-input"/>
              </div>
          </div>
          <div class="layui-form-item">
              <label class="layui-form-label">
                  <span class="x-red">*</span>网站logo
              </label>
              <div class="layui-input-inline">
                  <img id="logoPath" th:src="${platform.logoPath}"/>
              </div>
          </div>
            <div class="layui-form-item">
                <label for="platformurl" class="layui-form-label">
                    <span class="x-red">*</span>网站链接
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="platformurl" name="platformurl" lay-verify="required" readonly class="layui-input" th:value="${platform.platformurl}"/>
                </div>
            </div>
            <div class="layui-form-item">
                <label for="dataConfirm" class="layui-form-label">
                    <span class="x-red">*</span>数据确认方式
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="dataConfirm" name="dataConfirm" th:value="${platform.dataConfirm}" readonly lay-verify="required" class="layui-input"/>
                </div>
                <label for="onlineDate" class="layui-form-label">
                    <span class="x-red">*</span>上线时间
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="onlineDate" name="onlineDate" th:value="${#dates.format(platform.onlineDate,'yyy-MM-dd')}" readonly lay-verify="required" class="layui-input"/>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">
                    <span class="x-red"></span>标属性
                </label>
                <div class="layui-input-block">
                    <input type="checkbox" name="platformAttr" th:each="attr:${attrs}" th:title="${attr.name}" th:checked="${#strings.contains(platform.platformAttr,attr.code)}" lay-skin="primary" disabled>
                </div>
            </div>
            <div class="layui-form-item">
                <label for="annualized" class="layui-form-label">
                    <span class="x-red">*</span>年化收益
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="annualized" name="annualized" th:value="${platform.annualized}" readonly lay-verify="required" class="layui-input"/>
                </div>
                <label for="investDate" class="layui-form-label">
                    <span class="x-red">*</span>投资期限
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="investDate" name="investDate" th:value="${platform.investDate}" readonly lay-verify="required" class="layui-input"/>
                </div>
            </div>
            <div class="layui-form-item">
                <label for="investAmount" class="layui-form-label">
                    <span class="x-red">*</span>投资金额
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="investAmount" name="investAmount" th:value="${platform.investAmount}" readonly lay-verify="required" class="layui-input"/>
                </div>
                <label for="rebate" class="layui-form-label">
                    <span class="x-red">*</span>返利
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="rebate" name="rebate" th:value="${platform.rebate}" readonly lay-verify="required" class="layui-input"/>
                </div>
            </div>

            <div class="layui-form-item">
                <label for="areaId" class="layui-form-label">
                    <span class="x-red">*</span>平台地区
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="areaId" name="areaId" th:value="${platformarea.areaName}" readonly lay-verify="required" class="layui-input"/>
                </div>
                <label for="investCount" class="layui-form-label">
                    <span class="x-red">*</span>投标次数
                </label>
                <div class="layui-input-inline">
                    <select name="investCount" id="investCount" lay-verify="required" lay-search disabled>
                        <option th:each="invest:${invests}" th:value="${invest.code}" th:text="${invest.name}" th:checked="${#strings.equals(invest.code,platform.investCount)}" ></option>
                    </select>
                </div>
            </div>
            <div class="layui-form-item layui-form-text">
                <label for="remark" class="layui-form-label">
                    <span class="x-red">*</span>重要提示
                </label>
                <div class="layui-input-block">
                    <textarea name="remark" id="remark" lay-verify="required" readonly placeholder="请输入" class="layui-textarea" th:text="${platform.remark}"></textarea>
                </div>
            </div>
      </form>
    </div>
    <script>
        layui.use(['layedit'], function() {
            var layedit = layui.layedit;
            layedit.build('remark', {
                hideTool: ['image']
            }); //建立编辑器
        })
    </script>
  </body>

</html>